package com.karst.essentials.chapter06
{
	import flash.events.Event;
	
	import org.papervision3d.materials.ColorMaterial;
	import org.papervision3d.objects.DisplayObject3D;
	import org.papervision3d.objects.primitives.Plane;
	import org.papervision3d.view.BasicView;

	internal class MouseInteractionExample0 extends InteractionTemplate
	{
		public function MouseInteractionExample0()
		{
			super() ;
		}

		override protected function onRenderTick(event:Event=null):void
		{
			super.onRenderTick( event ) ;
			camera.x = ( mouseX - width * .5 ) * 2 ;
			//在Papervision3D 中Y 轴的加减和在Flash 中Y 轴的加减正好是反过来的
			camera.y = -( mouseY - height * .5 ) * 2 ;
		}
	}
	
}